# the minimum version of CMake.

#project(uart)

set(UART_PATH ${CMAKE_CURRENT_SOURCE_DIR})

include_directories(${UART_PATH}
                    ${UART_PATH}/include)

file(GLOB C_SOURCES ${UART_PATH}/src/*.c)
file(GLOB CPP_SOURCES ${UART_PATH}/src/native_module.cpp)
set(SRC_LIST ${CPP_SOURCES} ${C_SOURCES})

link_directories(${UART_PATH}/lib)

add_library(uart SHARED ${SRC_LIST})

target_link_libraries(uart PUBLIC libace_napi.z.so)
target_link_libraries(uart PUBLIC libhilog_ndk.z.so)
